package com.feng.seata.rpc;

import com.feng.common.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("product-xa")
public interface ProductClient {

    @PutMapping("/products/minus/stock")
    Result<?> minusStock(@RequestParam("buyNum") Integer buyNum);

}
